package com.itheima.day13.thread.test8;

public class Demo {
    public static void main(String[] args) {
        MyThread1 mt1 = new MyThread1();
        MyThread2 mt2 = new MyThread2();

        mt1.setName("航母");
        mt2.setName("战机");

        // 将战机mt2线程设置为守护线程/后台线程
        mt2.setDaemon(true);

        mt1.start();
        mt2.start();

    }
}
